Cleanup in Experiment Server - #14185
Conversation
d9b3bdf to
e448461
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14185 +/- ##
==========================================
+ Coverage 91.93% 91.95% +0.02%
==========================================
Files 482 484 +2
Lines 33513 33639 +126
==========================================
+ Hits 30809 30933 +124
- Misses 2704 2706 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
The last commit does not look like a cleanup. Can you elaborate what kind of issue it solves? (since it adds complexity to the code) |
I can put that in a separate PR. The issue listed code smells, including global variables. The last commit tries to battle exactly that, and this is surely up for debate if the change actually improves code quality, readability etc. |
There was a problem hiding this comment.
Pull request overview
Cleans up Experiment Server state management and removes obsolete Everest constants.
Changes:
- Replaces module-global experiment state with an injectable cached registry.
- Passes experiment state directly to runners and tightens exit-code handling.
- Updates tests and removes unused constants.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/ert/dark_storage/endpoints/experiment_server.py |
Refactors registry injection and runner state handling. |
src/everest/strings.py |
Removes unused constants. |
tests/everest/test_everserver.py |
Updates tests for the registry accessor. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
I agree we can put this in a separate PR, and the. we can look into whether we can use |
035a791 to
168d9fd
Compare
168d9fd to
9eb7dcd
Compare
Issue
Resolves #13927
Fixed typos
Removed unused constants
Update enum mapping
Fix comments
git rebase -i main --exec 'just rapid-tests')When applicable
merge screenshot-PR in ert-testdata before merging this PR.